package com.java.mall_imooc.service;

import com.java.mall_imooc.entity.PayInfo;
import com.lly835.bestpay.enums.BestPayTypeEnum;
import com.lly835.bestpay.model.PayResponse;

import java.math.BigDecimal;

/**
 * @author jiangli
 * @since 2020-03-13 23:21
 */
public interface PayService {
    /**
     * 创建/发起支付
     */
    PayResponse create(String orderNo, BigDecimal amount, BestPayTypeEnum bestPayTypeEnum);

    /**
     * 异步通知处理
     */
    String asyncNotify(String xmlData);

    PayInfo queryByOrderNo(String orderNo);
}
